const jwt = require('jsonwebtoken');
module.exports = function(user_id){
    const token = jwt.sign({user_id: user_id}, 'user', {expiresIn: `${60*30}s`
    });
    return token;
};